home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15877 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: mail2news.demon.co.uk!lorelei.demon.co.uk
  2. From: John Croudy <john@lorelei.demon.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: " A silly beginner's question
  5. Date: Mon, 8 Apr 96 16:53:18 GMT
  6. Organization: home
  7. Message-ID: <9604081653.AA001ov@lorelei.demon.co.uk>
  8. References: <4k9v0e$p57@nova.umuc.edu>
  9. X-NNTP-Posting-Host: lorelei.demon.co.uk
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!lorelei.demon.co.uk
  12.  
  13. On 7 Apr 1996 22:51:58 -0400, Steve Russell wrote:
  14.  
  15. > Anyway what is a " core dump"?  What causes it?
  16.  
  17. "Core Dump" is an old expression meaning "Listing of memory contents".
  18. It comes from the time when computer memory was made of an array of
  19. thousands of magnetic rings held on a grid of wires.  This was called
  20. core.  So, you get a core dump when something goes wrong in a program,
  21. and the operating system lists the program memory so you can examine it
  22. and hopefully find out what went wrong.  I find it easier to examine my
  23. source code, however :)
  24.  
  25. > What is a "segment fault"?  I've seen messages like " segment fault, core
  26. > dumped".  I stopped it by putting in exit commands before they
  27. > could happen, but what do these messages mean?
  28.  
  29. I'm not sure exactly, but it basically means your program is doing
  30. something nasty that it shouldn't, and causing a problem in the
  31. computer, which forces it to terminate the program abnormally.  It's
  32. commonly called a "crash".  You have a crash bug, and putting the exit
  33. commands in stops the program before it reaches the erroneous code.
  34.  
  35. > it to let me know when it executes.  I never saw it, does this
  36. > mean that it doesn't execute or just that it executes after my
  37. > program is completely over ( hence no message).
  38.  
  39. I guess it means it doesn't execute.  It can't execute after your
  40. program is finished (can it, anyone???) because it's part of the
  41. program.
  42.  
  43. > Is there a way to manually get the destructor to execute?
  44.  
  45. I'm not sure, and anyway I don't think it's a good idea.  If you created
  46. the object with "new" you have to use "delete".  If you created the
  47. object on the stack, it should destruct when it goes out of scope which
  48. generally means at the next closing brace }
  49.  
  50. John
  51. xxxx
  52.